package com.feeyo.groundservice.recordnfc.model

import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
import com.squareup.moshi.Json

/**
 *作者：70893 on 2025-10-10
 *描述：
 */

internal data class TaskBO(
    val data: List<TaskItemBO>
)

/**
 * {
 *   "task_config": {
 *     "id": "1",
 *     "title": "进港摆渡车",
 *     "ptype": 0,
 *     "tid": "1"
 *   },
 *   "task_type": {
 *     "id": "1",
 *     "title": "摆渡车",
 *     "iata": "SHE"
 *   },
 *   "unit": {
 *     "id": "1",
 *     "title": "测试保障单位",
 *     "iata": "SHE"
 *   }
 * }
 *
 * **/
internal data class TaskItemBO(
    val task_config: TaskConfigBO,
    //val task_type: TaskTypeBO,
    //val unit: UnitItemBO
)

internal data class TaskConfigBO(
    val id: String,
    val title: String,
    @Json(ignore =  true)
    val checked: MutableState<Boolean> = mutableStateOf(false)
)

internal data class TaskTypeBO(
    val id: String,
    val title: String,
    val iata: String
)